package com.freedom.ums.member.domain.service.impl;

import com.freedom.ums.finance.domain.repository.WalletRepository;
import com.freedom.ums.member.domain.service.WalletService;
import com.freedom.ums.finance.infrastructure.persistence.pojo.bo.WalletBO;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@AllArgsConstructor
public class WalletServiceImpl implements WalletService {

    private final WalletRepository WalletRepository;

    @Override
    public void saveWallet(Integer memberId) {
        WalletBO walletBO = new WalletBO(memberId);
        WalletRepository.saveWallet(walletBO);
    }
}
